import { translateTitle } from '@/utils/i18n'
const MessageConfigValue = {
  MessageConfigValue: {
    search: {
      form: {
        method: 'ApimMessageConfigValueQuery',
        name: 'search',
        field: [
          {
            type: 'input',
            name: 'MESSAGE_GROUP_ID',
            label: translateTitle('Dams.APIMinterfaceManagement.消息集编号'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'MESSAGE_ID',
            label: translateTitle('Dams.APIMinterfaceManagement.接口编号'),
            labelHidden: false,
          },
          {
            type: 'button',
            label: translateTitle('Dams.APIMinterfaceManagement.查询'),
            labelHidden: true,
          },
        ],
      },
    },
    dialog: {
      form: {
        method: '',
        name: 'dialog',
        field: [
          {
            type: 'checkbox',
            name: 'ID',
            label: '',
            hidden: true,
          },
          {
            type: 'input',
            name: 'MESSAGE_GROUP_ID',
            label: translateTitle('Dams.APIMinterfaceManagement.消息集编号'),
            labelHidden: false,
            disabled_edit: true,
            isRules: true,
          },
          {
            type: 'input',
            name: 'MESSAGE_ID',
            label: translateTitle('Dams.APIMinterfaceManagement.接口编号'),
            labelHidden: false,
            isRules: true,
            disabled_edit: true,
          },
          {
            type: 'input',
            name: 'SN',
            label: translateTitle('Dams.APIMinterfaceManagement.序号'),
            labelHidden: false,
            disabled_edit: true,
          },
          {
            type: 'select',
            name: 'TYPE',
            label: translateTitle('Dams.APIMinterfaceManagement.参数类型'),
            isRules: true,
            labelHidden: false,
            options: [
              { LABEL: 'ContenType配置', CODE: '1' },
              { LABEL: '文件接口字符集配置', CODE: '2' },
              { LABEL: '密码认证配置', CODE: '10' },
              { LABEL: '验签配置', CODE: '11' },
              { LABEL: 'Token配置', CODE: '16' },
              { LABEL: '简单回写设配置', CODE: '20' },
              { LABEL: 'SP相关参数配置', CODE: '30' },
              { LABEL: '模板回写配置', CODE: '66' },
              { LABEL: '命名空间设配置', CODE: '88' },
              { LABEL: '邮件配置', CODE: '14' },
              { LABEL: 'HttpHeaderParam设置', CODE: '3' },
            ],
          },
          {
            type: 'select',
            name: 'ACTIVE_FLAG',
            label: translateTitle('Dams.APIMinterfaceManagement.激活标志'),
            labelHidden: false,
            isRules: true,
            options: [
              {
                LABEL: translateTitle('Dams.APIMinterfaceManagement.是'),
                CODE: 'Y',
              },
              {
                LABEL: translateTitle('Dams.APIMinterfaceManagement.否'),
                CODE: 'N',
              },
            ],
          },
          {
            type: 'input',
            name: 'VALUE_STR01',
            label: translateTitle('Dams.APIMinterfaceManagement.自定义参数1'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'VALUE_STR02',
            label: translateTitle('Dams.APIMinterfaceManagement.自定义参数2'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'VALUE_STR03',
            label: translateTitle('Dams.APIMinterfaceManagement.自定义参数3'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'VALUE_STR04',
            label: translateTitle('Dams.APIMinterfaceManagement.自定义参数4'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'VALUE_STR05',
            label: translateTitle('Dams.APIMinterfaceManagement.自定义参数5'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'VALUE_STR06',
            label: translateTitle('Dams.APIMinterfaceManagement.自定义参数6'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'VALUE_STR07',
            label: translateTitle('Dams.APIMinterfaceManagement.自定义参数7'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'VALUE_STR08',
            label: translateTitle('Dams.APIMinterfaceManagement.自定义参数8'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'VALUE_STR09',
            label: translateTitle('Dams.APIMinterfaceManagement.自定义参数9'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'VALUE_STR10',
            label: translateTitle('Dams.APIMinterfaceManagement.自定义参数10'),
            labelHidden: false,
          },
          {
            type: 'button',
            label: translateTitle('Dams.APIMinterfaceManagement.提交'),
            labelHidden: true,
            isRules: true,
          },
        ],
      },
    },
    deleteMethod: 'ApimMessageConfigValueRemove',
    updateMethod: 'ApimMessageConfigValueUpdate',
    addMethod: 'ApimMessageConfigValueSava',
    downloadMethod: 'apim.message.config.value.export',
  },
}
export default MessageConfigValue
